import { lazy } from 'react';

const Home = lazy(() => import('@pages/home'));
const Node = lazy(() => import('@pages/node'));
const Exchange = lazy(() => import('@pages/exchange'));
const Shopping = lazy(() => import('@pages/shopping'));
const Order = lazy(() => import('@pages/order'));
const Team = lazy(() => import('@pages/team'));
const Detail = lazy(() => import('@pages/detail'));
const My = lazy(() => import('@pages/my'));
const OrderConfirm = lazy(() => import('@pages/order/confirm'));
const Address = lazy(() => import('@pages/address'));
const AddressManage = lazy(() => import('@pages/address/manage'));
const Bill = lazy(() => import('@pages/bill'));
const Recharge = lazy(() => import('@pages/recharge'));

const routes = [
  { path: '/', element: Home },
  { path: '/node', element: Node },
  { path: '/exchange', element: Exchange },
  { path: '/shopping', element: Shopping },
  { path: '/order', element: Order },
  { path: '/team', element: Team },
  { path: '/detail', element: Detail },
  { path: '/my', element: My },
  { path: '/order/confirm', element: OrderConfirm },
  { path: '/address', element: Address },
  { path: '/address/manage', element: AddressManage },
  { path: '/bill', element: Bill },
  { path: '/recharge', element: Recharge },
];

export default routes;